[jQuery] Re: how to query for words with special (UTF-8 encoded) characters?

2009-08-25 Thread Adriano Varoli Piazza
it. - typing in 'ana' displays the word, but without the 'aña' sequence highlighted. (other returned strings that do contain 'ana' are properly highlighted). - firebug tells me the query string sent ishttp://localhost/alabern/autocomplete/prov.php?q=a%C3%B1alimit=1000;... I was able to solve

[jQuery] Re: [autocomplete] how to query for words with special (UTF-8 encoded) characters?

2009-08-24 Thread Adriano Varoli Piazza
to decode the incoming string ie q=Östman but nothing happens? Do I need to encode the returned string as well? Any thoughts are greatly appreciated! Christer I'd like to bump this up. I'm trying to implement a dynamic form, and I need to query for words containing (in this particular case) ñ

[jQuery] Re: url encoding for GET

2007-06-16 Thread Mike Alsup
to server in query string. If I use $.get, like this $.get(queryfile,{url:url,num:num},function(output){ ... }); the url is encoded as it is sent. BUT if I use $.ajax({ type:GET, url:queryfile, data:url=+url,num=+num, success:function(output){ } }) the url as it is sent is not encoded. Am

[jQuery] Re: how to query for words with special (UTF-8 encoded) characters?

2009-09-18 Thread Dark
' displays the word, but without the 'aña' sequence highlighted. (other returned strings that do contain 'ana' are properly highlighted). - firebug tells me the query string sent ishttp://localhost/alabern/autocomplete/prov.php?q=a%C3%B1alimit=1000;... I was able to solve this simply

[jQuery] Re: [autocomplete] hard time with accent

2009-06-04 Thread Tom Worster
On 6/3/09 11:55 PM, Gustavo Salomé gustavon...@gmail.com wrote: No way you can do this unless you do have 'switch' that converts all elements to its respective non-utf8 code. how is the search string encoded in the q parameter sent to the backend? whatever conversion is needed, isn't

[jQuery] Sending POST params along with GET?

2007-05-18 Thread Crusty
like this: --- $('#selector').load(link, { special: var, str: string, existing: existing_str }, rebind); --- 'link' would be the example URL above 'special' is the specific POST variable the CP needs to let the query through 'str' 'existing' are for my module 'rebind' is the callback function

[jQuery] Re: Data containing ? at the start getting converted to jsonp.... by ajax() call

2007-12-04 Thread Scott Trudeau
++; // Replace the =? sequence both in the query string and the data if ( s.data ) s.data = s.data.replace(jsre, = + jsonp); s.url = s.url.replace(jsre, = + jsonp); ... But I see no way to prevent that from happening

[jQuery] Re: Data containing ? at the start getting converted to jsonp.... by ajax() call

2007-12-04 Thread Ben Bennett
(jsre)) ) { jsonp = jsonp + jsc++; // Replace the =? sequence both in the query string and the data if ( s.data ) s.data = s.data.replace(jsre, = + jsonp); s.url

[jQuery] Re: [autocomplete] hard time with accent

2009-06-04 Thread James
this conversion/matching. On Jun 4, 5:51 am, Tom Worster f...@thefsb.org wrote: On 6/3/09 11:55 PM, Gustavo Salomé gustavon...@gmail.com wrote: No way you can do this unless you do have 'switch' that converts all elements to its respective non-utf8 code. how is the search string encoded

[jQuery] Re: Use JSON from .post

2008-10-29 Thread Rogers
You were correct. I discovered that javascript was expanding the json string into an object and when I packed the object back into another encoded string using $.toJSON(item) (an available plugin) it all worked as expected. I've been working long crazy hours, but I could swear that before